﻿using AutoMapper;
using DTcms.Core.Model.Models;
using DTcms.Core.Model.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DTcms.Core.Model.Profiles
{
    public class LinkProfile : Profile
    {
        public LinkProfile() {
            //将源数据映射到DTO
            CreateMap<Links,LinksDto>();
            //将DTO映射到源数据
            CreateMap<LinksEditDto, Links>();
            CreateMap<LinksClientDto, Links>();

        }
    }
}
